package com.youlai.boot.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 回收请求与垃圾类型关联实体对象
 *
 * @author youlaitech
 * @since 2025-02-24 16:19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gb_request_waste")
public class RequestWaste extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 上传的垃圾图片
     */
    private String fileUrl;
    /**
     * 回收请求主表id
     */
    private Long requestId;
    /**
     * 关联垃圾类型id
     */
    private Long typeId;
    /**
     * 垃圾重量（千克）
     */
    private BigDecimal weight;
    /**
     * 实际收益（单价*重量）
     */
    private BigDecimal actualPrice;
    private Long createBy;
    private Long updateBy;

    @TableLogic
    private Integer isDeleted;
}
